<?php
require_once 'inc/CorePage.php';
class TalesPage extends CorePage {
	protected $items = array(
		array (
			'title' => 'path',
			'urls' => array(
				'http://phptal.motion-twin.com/manual/en/#tales-path',
			),
			'body' => 'Default expression type - Tales Path. MicroTal can understand <pre>path:a/b</pre> when a is an array (then "b" will be the index) or when a is an object and b is method or property. If Path resolved to method and there are still unused path steps they are passed as arguments to method',
			'support' => 'good',
			'syntax' => 'value(expression)',
			'examples' => array (
				array('template'=>'<span tal:content="data/user/name"/><span tal:content="path:data/user/name"/><span>${data/user/name}</span>',
					'data' => array('data'=>array('user'=>array('name'=>'it is all the same'))),
				),
			),
		),
		array (
			'title' => 'not',
			'urls' => array(
				'http://phptal.motion-twin.com/manual/en/#tales-not',
			),
			'body' => 'Simply negates Tales expression',
			'support' => 'good',
			'syntax' => 'value(expression)',
		),
		array (
			'title' => 'string',
			'urls' => array(
				'http://phptal.motion-twin.com/manual/en/#tales-string',
			),
			'body' => 'Tells to interpret rest of string literally. ${path} can be used inside to concat variables',
			'support' => 'Imcompatible with phptal',
		),
		array (
			'title' => 'php',
			'urls' => array(
				'http://phptal.motion-twin.com/manual/en/#tales-php',
			),
			'body' => 'MicroTal doesn\'t perform any checks or validation, it just copies php code directly to "compiled" template',
			'support' => 'Imcompatible with phptal',
		),
		array (
			'title' => 'exists',
			'urls' => array(
				'http://phptal.motion-twin.com/manual/en/#tales-exists',
			),
			'body' => 'Not supported - but if You use invalid path you will simply get false',
		),
		array (
			'title' => 'nocall',
			'urls' => array(
				'http://phptal.motion-twin.com/manual/en/#tales-nocall',
			),
			'body' => 'Not supported - icrotal always calls',
		),
	);
}

